import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
App.mpType = 'app'
import store from './store/index'
import currency from './utils/index'
import request from './utils/request'
const app = new Vue(App)
Vue.prototype.$store = store
Vue.prototype.$request = request
Vue.prototype.$currency = currency
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: ['^pages/home/main','pages/classify/main','pages/circle/main',
      'pages/plan/main','pages/contact/main','pages/joinDetails/main','pages/shop/main',
      'pages/customer/main','pages/login/main','pages/articleDetails/main','pages/cutPrice/main',
      'pages/luckDraw/main','pages/qrcode/main','pages/personal/main','pages/launchCut/main',
      'pages/luckDrawList/main','pages/imagesDetails/main'
      ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black',
    },
    tabBar: {
      selectedColor: '#333333',
      list: [{
        pagePath: "pages/home/main",
        text: "首页",
        iconPath: './static/images/tabBar/home.png',
        selectedIconPath: './static/images/tabBar/home-active.png'
      }, {
        pagePath: "pages/classify/main",
        text: "商品",
        iconPath: './static/images/tabBar/classify.png',
        selectedIconPath: './static/images/tabBar/classify-active.png'
      },{
        pagePath: "pages/circle/main",
        text: "造物圈",
        iconPath: './static/images/tabBar/circle.png',
        selectedIconPath: './static/images/tabBar/circle-active.png'
      },{
        pagePath: "pages/plan/main",
        text: "脑洞计划",
        iconPath: './static/images/tabBar/plan.png',
        selectedIconPath: './static/images/tabBar/plan-active.png'
      },{
        pagePath: "pages/contact/main",
        text: "加入我们", 
        iconPath: './static/images/tabBar/contact.png',
        selectedIconPath: './static/images/tabBar/contact-active.png'
      },
      ]
    },
  }
}
